<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/17
 * Time: 13:56
 */

namespace app\index\model;


use think\Model;

class ShopCategory extends Model
{

    protected $table = "duck_shop_category";

    public function foods(){
        return $this->hasMany('ShopFoods','category_id','id');
    }

}